<!DOCTYPE html>
<html>
  <head>
    <meta charset='UTF-8'>
      <title>jquery.gridly插件 - 事项div样式的平滑拖拽效果</title>
      <link href='css/lanrenzhijia.css' rel='stylesheet' type='text/css'>
      <script src='js/jquery.js'></script>
      <script src='js/jquery.gridly.js'></script>
      <script src='js/lanrenzhijia.js'></script>
    </meta>
  </head>
  <body>
    <div class='content'>
    
    <!-- 需要拷贝的代码部分begin -->
      <section class='example'>
        <div class='gridly'>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
          <div class='brick small'>
            <a class='delete' href='#'>&times;</a>
          </div>
        </div>
        <p class='actions'>
          <a class='add button' href='#'>Add</a>
        </p>
      </section>
      
      <pre><code data-language='html'>&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&#x000A;&lt;script src=&quot;javascript/jquery.gridly.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&#x000A;&lt;link href=&quot;stylesheets/jquery.gridly.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</code></pre>
      <h2>Example</h2>
      <p>Setting up a gridly is easy. The following snippet is a good start:</p>
      <pre><code data-language='html'>&lt;style type=&quot;text/css&quot;&gt;&#x000A;  .gridly {&#x000A;    position: relative;&#x000A;    width: 960px;&#x000A;  }&#x000A;  .brick.small {&#x000A;    width: 140px;&#x000A;    height: 140px;&#x000A;  }&#x000A;  .brick.large {&#x000A;    width: 300px;&#x000A;    height: 300px;&#x000A;  }&#x000A;&lt;/style&gt;&#x000A;&lt;div class=&quot;gridly&quot;&gt;&#x000A;  &lt;div class=&quot;brick small&quot;&gt;&lt;/div&gt;&#x000A;  &lt;div class=&quot;brick small&quot;&gt;&lt;/div&gt;&#x000A;  &lt;div class=&quot;brick large&quot;&gt;&lt;/div&gt;&#x000A;  &lt;div class=&quot;brick small&quot;&gt;&lt;/div&gt;&#x000A;  &lt;div class=&quot;brick small&quot;&gt;&lt;/div&gt;&#x000A;  &lt;div class=&quot;brick large&quot;&gt;&lt;/div&gt;&#x000A;&lt;/div&gt;&#x000A;&lt;script&gt;&#x000A;  $('.gridly').gridly({&#x000A;    base: 60, // px &#x000A;    gutter: 20, // px&#x000A;    columns: 12&#x000A;  });&#x000A;&lt;/script&gt;</code></pre>

    </div>
  </body>
</html>
